package com.sgu6.sgu6_machine.common;

import android.os.Environment;

public class Constant {
    public static final String FILE_ROOT_PATH = Environment.getExternalStorageDirectory().getPath();

    //定时开关机,在指定时间调节机器横封纵封温度
    public static final String ACTION_ALARM_ON = "sgu6.auto.on.action";
    public static final String ACTION_ALARM_OFF = "sgu6.auto.off.action";
    public static final String ACTION_AD_REFRESH = "sgu6.ad.refresh.action";
    public static final int ALARM_ON_CODE = 11;
    public static final int ALARM_OFF_CODE = 12;
    public static final int ALARM_AD_REFRESH_CODE = 13;

    //默认机器账号密码
    public static final String SGU6_MERCHANT_ID = "80f23f3121d541dabcc4b78838a10233";
    //默认机器账号
    public static final String SGU6_DEFAULT_MACHINE_NO = "000-0000000";


    /**
     * api服务
     */
    public static final String API_DOMAIN_DEV = "https://api-dev.sgu6.com"; //开发后台服务域名
    public static final String API_DOMAIN_BETA = "http://rest-api.sgu6.com"; //正式后台服务域名

    /**
     * 管理后台api
     */
    public static final String ADMIN_API_DOMAIN_DEV = "http://admin-dev-api.sgu6.com"; //开发后台服务域名
    public static final String ADMIN_API_DOMAIN_BETA = "http://admin-api.sgu6.com"; //正式后台服务域名

    /**
     * 扫码登录管理后台
     */
    public static final String LOGIN_MANAGEMENT_DEV = "http://admin-dev.sgu6.com"; //开发后台服务域名
    public static final String LOGIN_MANAGEMENT_BETA = "http://admin.sgu6.com"; //正式后台服务域名


    /**
     * 支付
     */
    public static String PAY_PATH_DEV = "https://wechat-dev.sgu6.com";
    public static String PAY_PATH_BETA = "http://www.sgu6.com";

    /**
     * netty长连接
     */
    public static final String SOCKET_HOST_DEV = "socket-dev.sgu6.com"; //开发服
    //    public static final String SOCKET_HOST_DEV = "192.168.50.41"; //开发服
    public static final String SOCKET_HOST_BETA = "socket.sgu6.com"; //正式服
    public static final Integer SOCKET_PORT_DEV = 65430;
    public static final Integer SOCKET_PORT_BETA = 65430;


    /**
     * redis
     */
    public static String REDIS_URI_DEV = "redis://:redis_zncg@redis-dev.sgu6.com:6379/1"; //开发服
    public static String REDIS_URI_BETA = "redis://:redis0714-sgu6@redis.sgu6.com:6379/1"; //正式服

    /**
     * 日志上传
     */
    public static String LOG_UPLOAD_DEV = "http://47.106.113.217:1789/upload"; //日志上传开发服
    public static String LOG_UPLOAD_BETA = "http://47.107.234.218:1789/upload"; //日志上传正式服


    public static int socketHeartbeatTime = 20;   //向服务器发送心跳包的间隔时间，单位：秒

    //精米类别
    public static String JING_MI = "70f23f3121d541dabcc4b78838a99268";
    //糙米类别
    public static String CAO_MI = "08d79493bf0c4cc1ba7b3546a20ce2ae";
    //胚芽米类别
    public static String PEI_MI = "6097b2ffd5ae4da181cf0ecfaa85af6b";
    //饮用水
    public static String WATER = "cc86a5db1caa4f08a7bdaad9fc3ce1b4";


    public static Integer READ_CARD_DELAY = 300;//读卡延时
    public static Integer READ_CARD_PERIOD = 1000;//读卡周期
    public static float DEFAULT_MAKE_RICE_RATE = 0.65f;//默认出米率


}
